
from appium import webdriver
from unittest import TestCase
from ddt import ddt,data,unpack

from app.页面对象.Test_Page import Test_Page

url = "http://127.0.0.1:4723/wd/hub"

@ddt
class TestLogin(TestCase):


    def testLoginSuccess1(self):
        self.driver = webdriver.Remote(url, {
    "deviceName": "127.0.0.1:62001",
    "platformName": "Android",
    "platformVersion": "7.1.2",
    "appPackage": "com.meituan.phoenix",
    "appActivity": "com.meituan.phoenix.MainActivity"
})

        self.driver.implicitly_wait(60)
        test=Test_Page(self.driver)
        test.test_Page()
        self.driver.quit()


